package com.andy.wan.android.mvp.ui.adapter;

import com.andy.wan.android.R;
import com.andy.wan.android.mvp.bean.LeftMenuBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import androidx.annotation.NonNull;

/**
 * @Author: luofan
 * @CreateDate: 2020/5/13 17:06
 * @Description:
 */
public class LeftMenuAdapter extends BaseQuickAdapter<LeftMenuBean, BaseViewHolder> {

    public LeftMenuAdapter() {
        super(R.layout.adapter_left_menu);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, LeftMenuBean item) {
        helper.setImageResource(R.id.img_left, item.getResId());
        helper.setText(R.id.tv_name, item.getName());
    }
}
